package gpl.pierrick.brihaye.aramorph.lucene;

import java.io.IOException;
import java.util.ArrayList;

import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;

/**
 * Processes a stream of tokens by passing a copy of the input tokens
 * through multiple filters. The outputs of these filters are then combined
 * into one stream. 
 * @author aseldawy
 * @author Ahmed AbdelHaffiez
 *
 */
public class TokenProcessor extends TokenFilter {

	protected ArrayList<TokenFilter> filters;
	
	public TokenProcessor(TokenStream input) {
		super(input);
		filters = new ArrayList<TokenFilter>();
	}
	
	/**
	 * Adds the given filter to the list of filters this processor uses.
	 * @param filter
	 */
	public void addFilter(TokenFilter filter) {
		filters.add(filter);
	}

	@Override
	public boolean incrementToken() throws IOException {
		// TODO Auto-generated method stub
		return false;
	}

}
